package com.heima.leadnews.artlite.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.article.dto.*;
import com.heima.model.common.article.pojo.ApArticle;
import com.heima.model.common.article.vo.ApArticleVo;
import com.heima.model.common.article.vo.LoadArticleBehaviorVo;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.wemedia.dto.WmNewsADto;

import java.util.List;

/**
 * <p>
 * 文章信息表，存储已发布的文章 服务类
 * </p>
 *
 * @author author
 * @since 2023-05-31
 */
public interface ApArticleService extends IService<ApArticle> {

    ResponseResult<List<ApArticle>> load(ApArticleDto dto);

    ResponseResult<List<ApArticle>> loadMore(ApArticleMinDto dto);

    ResponseResult<List<ApArticle>> loadnew(ApArticleAMaxDto dto);

    ResponseResult saveArticle(WmNewsADto dto);

    ResponseResult updateStaticUrl(Long articleId, String url);

    ResponseResult<List<ArticleDocDto>> findAll();

    ResponseResult<ArticleDocDto> findById(Long id);

    ResponseResult<LoadArticleBehaviorVo> loadArticleBehavior(loadArticleBehaviorDto dto);

    public void saveHotArticle();

    ResponseResult<List<ApArticleVo>> loadHotArtaic(String channelId);
}
